package com.zd.service;

import com.zd.entity.PageResult;
import com.zd.entity.QueryPageBean;
import com.zd.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetmealService {
    //添加套餐
    public void add(Setmeal setmeal,Integer[] checkgroupIds);
    //分页查询
    public PageResult pageQuery(QueryPageBean queryPageBean);

    //查询所有套餐信息，返回给前端页面
    public List<Setmeal> findAll();

    //根据id查套餐详情
    public Setmeal findById(int id);

    //套餐占比统计
    public List<Map<String, Object>> findSetmealCount();
}
